/* _____________________________________________________________________________
 *
 *                     C A R T E    CHIPKIT MAX 3 2    M X 7 9 5
 * _____________________________________________________________________________
 *
 * Titre            : Démo du module RTCC
 * Version          : v01r00
 * Date             : 24/11/2013
 * Auteur           : Christophe HALGAND (CH)
 * Contact          : c.halgand@gmail.com
 * Source du PGM    : l'auteur
 * Carte MCU        : chipKIT Max32™ Prototyping Platform + chipKIT Network Shield™
 * Outils utilisés  : MPLAB® X IDE v1.95 (Tools used)
 * Compilateur      : Microchip XC32 v1.30 Compiler
 * MCU utilise      : PIC32MX795F512L
 * Horloge          : POSC   = Quartz Q1= 8 MHz
 * SystemClock      : SYSCLK = POSC / FPLLIDIV * FPLLMUL / FPLLODIV, soit 8e+6/2*20/1= 80 MHz
 * PeripheralClock  : PBCLK  = SYSCLK / FPBDIV, soit 80e+6/8= 10 MHz (10e+6)
 * Clocking device  : TCY    = 1 / PBCLK, soit 1/80e+6= 12,5 ns (12,5e-9)
 * Programmateur    : PICkit 3
 * Alimentation     : alimentation par liaison USB
 *
 *
 * Historique des modifications / Change history :
 * ----------------------------------------------
 *
 * Rev      Date        Auteur      Commentaire
 * --------------------------------------------------------------------------
 * 01.00    24/11/2013      CH      Première version
 *
 *
 * Software License Agreement :
 * ---------------------------
 * THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTIES,
 * WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
 * TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 * PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
 * IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
 * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
 *
 *
 * Description :
 * ------------
 * Démo RTCC "Real-Time Clock and Calendar"
 * Requirements: External 32.768 kHz Clock Crystal (IC6 on chipKIT Network Shield™)
 * --> Seconds Clock (or Alarm Pulse) Output on RTCC pin
 *     RTCCONbits.RTCOE = 1;    // RTCC clock output enabled – clock presented onto an I/O
 * --> Mise à l'heure du module RTCC
 * _____________________________________________________________________________
 */


/** I N C L U D E S ***********************************************************/
#include <plib.h>       // Master header file for all peripheral library includes

#ifndef _RTCC
    #error "This example needs a PIC32MX processor with RTCC peripheral present. Aborting build!"
#endif  // _RTCC


/*
 * 
 */
int main(int argc, char** argv) {

    return (EXIT_SUCCESS);
}

